<?php

namespace Library\Widget\Box\Contacts;

class Request extends \Library\Widget {

	private $_request;
	
	public function __construct( \Bean\User\Request $request ) {
		parent::__construct();
		$this->_request = $request;
	}
	
	public function getRequest() {
		return $this->_request;
	}
	
	public function getUser() {
		return $this->_request->getRequester();
	}
	
	public function getMessage() {
		if( !$this->_request->getMessage() ) {
			return 'No message';
		}
		return $this->_request->getMessage();
	}
	
	public function getRequestId() {
		return $this->_request->getRequestId();
	}
}
